package com.yrc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Author: Yrc
 * @create: 2020/11/18 21:42
 */
@SpringBootApplication//(exclude = {SecurityAutoConfiguration.class})
//扫描mybatis通用mapper所在的包
@MapperScan(basePackages = "com.yrc.mapper")
//扫描所有包及相关组件包
@ComponentScan(basePackages = {"com.yrc","org.n3r.idworker"})
//开启定时任务
@EnableScheduling
//开启使用redis作为spring session
//@EnableRedisHttpSession
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
